package member.base.action;

import m.common.action.ActionRequest;
import m.common.action.RequestMethod;
import m.common.model.util.ModelQueryList;
import m.common.model.util.QueryCondition;
import m.system.util.JSONMessage;
import member.base.model.MoneyRecord;
import member.base.util.PowerUtil;

@ActionRequest(name = "action/base/moneyRecord",description = "金额记录")
public class MoneyRecordAction extends BaseAction{
    @RequestMethod(description = "列表")
    public JSONMessage getList() throws Exception {
        ModelQueryList queryList=toQueryList(MoneyRecord.class,"*");
        queryList.addCondition(QueryCondition.eq("member.business.oid", PowerUtil.getBusiness().getOid()));
        return JSONMessage.success("查询成功").push("page",ModelQueryList.getModelPageInfo(queryList));
    }
}
